package com.example.providerandconsumer.service.impl;

import com.example.common.service.Shop;
import com.example.common.service.ShopList;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProviderConsumerImpl implements Shop {
    @Resource
    private ShopList shopList;
    @Override
    public List getShop() {
        System.out.println("---------provider-consumer---");
        List list = shopList.getShopList();
        return list;
    }
}
